<%@ page import="com.xlro.service.BookService" %>
<%@ page import="com.xlro.domain.Book" %><%--
  Created by IntelliJ IDEA.
  User: xlro
  Date: 2021/5/30
  Time: 16:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>图书个人信息</title>
    <style>
        html, body {
            font-size: 10px;
            margin-top: 33px;
            margin-left: 6%;
        }
    </style>
</head>
<body>
<%@include file="alert.jsp"%>
<%
    request.setCharacterEncoding("utf-8");
    String id = request.getParameter("id");
    BookService bookService = new BookService();
    Book book = bookService.getBook(id);

%>
<form class="layui-form" method="post" action="/alterBookInfo">
<div class="layui-card" style="position:relative;top: -66px;width: 50%;background: rgba(255,255,255, 0);">
    <div class="layui-card-body">
        <p>书籍编号</p><input type="text" name="id" value="<%=  book.getId() %>">
        <p>书籍名</p><input type="text"    name="name"  value="<%= book.getName() %>">
        <p>作者</p><input type="text"    name="author" value="<%=  book.getAuthor() %>">
        <p>图书馆</p><input type="text"    name="library" value="<%=  book.getLibraryId() %>">
    </div>
</div>
<div class="layui-card" style="position:relative;top: -66px;width: 90%;background: rgba(255,255,255, 0);">
    <div class="layui-card-body">
        <p>排序</p><input    type="text" name="sort" value="<%= book.getSortId() %>">
        <p>位置</p><input    type="text" name="position" value="<%=  book.getPosition() %>">
        <p>标识</p><input    type="text" name="status" value="<%=  book.getStatus() %>">
        <p>描述</p><textarea name="desc" id="" style="width: 170px" cols="15" rows="5"><%=  book.getDesc() %></textarea>
    </div>
    <div class="layui1-input-block" style="position: relative;left: 25%;top: 50%">

        <button class="layui-btn layui-btn-radius" lay-submit
                lay-filter="*" style="width: 66px;position: relative;left: 16%">提交修改
        </button>
    </div>
</div>

</form>

</body>
</html>
